package com.google.code.bigyang.log;

public class DefaultConsoleLogger implements Logger {

	private static final String DEBUG = "DEBUG";
	private static final String INFO = "INFO";
	private static final String WARN = "WARN:";
	private static final String ERROR = "ERROR:";
	
	public void debug(Object message) {
		System.out.println(DEBUG + message);
	}

	public void debug(Object message, Throwable thr) {
		System.out.println(DEBUG + message);
		thr.printStackTrace();
	}

	public void info(Object message) {
		System.out.println(INFO + message);
	}

	public void info(Object message, Throwable thr) {
		System.out.println(INFO + message);
		thr.printStackTrace();
	}

	public void warn(Object message) {
		System.out.println(WARN + message);
	}

	public void warn(Object message, Throwable thr) {
		System.out.println(WARN + message);
		thr.printStackTrace();
	}

	public void error(Object message) {
		System.out.println(ERROR + message);
	}

	public void error(Object message, Throwable thr) {
		System.out.println(ERROR + message);
		thr.printStackTrace();
	}

}
